<template>
  <div class="my">
    <div class="myTop">
        <div class="message">
           <div class="images" @click="$router.push({name: 'personal'})"></div>
           <div class="mes">
             <div class="name">秋水共长天一色#0986</div>
             <div class="phone">手机号：188 0000 2222</div>
           </div>
        </div>
        <van-row gutter="0" class="myFun">
          <van-col span="8">
            <div class="con" @click="$router.push({name: 'myOrder'})">
                <i class="iconfont icon-qianbao"></i>
                <p>我的订单</p>
            </div>
          </van-col>
          <van-col span="8">
             <div class="con" @click="$router.push({name: 'service'})">
                <i class="iconfont icon-kefu"></i>
                <p>我的客服</p>
            </div>
          </van-col>
          <van-col span="8">
             <div class="con" @click="$router.push({name: 'set'})">
                <i class="iconfont icon-shezhi"></i>
                <p>设置</p>
            </div>
          </van-col>
        </van-row>
    </div>
    <div class="container">
      <div class="collect">我的藏品(4)</div>
      <ul class="">
        <li>
          <div class="divli" @click="clickCollect"> 
            <van-image class="avtar" :src="require('../assets/img/info1 (3).png')" />
             <div class="name">TRON #3378</div>
             <div class="comp">元宇宙国际拍卖有限公司</div>
            <van-image class="avtarNum" :src="require('../assets/img/bianz.png')" />
          </div>
        </li>
        <li>
          <div class="divli" @click="clickCollect"> 
            <van-image class="avtar" :src="require('../assets/img/info2.png')" />
             <div class="name">TRON #3378</div>
             <div class="comp">元宇宙国际拍卖有限公司</div>
            <van-image class="avtarNum" :src="require('../assets/img/bianz.png')" />
          </div>
        </li>
        <li>
          <div class="divli" @click="clickCollect"> 
            <van-image class="avtar" :src="require('../assets/img/info2.png')" />
             <div class="name">TRON #3378</div>
             <div class="comp">元宇宙国际拍卖有限公司</div>
            <van-image class="avtarNum" :src="require('../assets/img/bianz.png')" />
          </div>
        </li>
        <li>
          <div class="divli" @click="clickCollect"> 
            <van-image class="avtar" :src="require('../assets/img/info1 (3).png')" />
             <div class="name">TRON #3378</div>
             <div class="comp">元宇宙国际拍卖有限公司</div>
            <van-image class="avtarNum" :src="require('../assets/img/bianz.png')" />
          </div>
        </li>
        <li>
          <div class="divli" @click="clickCollect"> 
            <van-image class="avtar" :src="require('../assets/img/info1 (3).png')" />
             <div class="name">TRON #3378</div>
             <div class="comp">元宇宙国际拍卖有限公司</div>
            <van-image class="avtarNum" :src="require('../assets/img/bianz.png')" />
          </div>
        </li>
    
      </ul>
    </div>
  </div>
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
  name: 'my',
  computed: { ...mapGetters({ pageData: 'pageData'}) },
  data () {
    return {
      
    }
  },
  methods: {
    clickCollect() {
      this.$router.push({name: 'collection'})
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="less" scope>
.my {
  width: 100%;
  height: 100%;
  padding-bottom: 40px;
  box-sizing: border-box;
  .myTop {
    width: 100%;
    height: 208px;
    background: #fff;
    padding-top: 54px;
    box-sizing: border-box;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 0px 0px 18px 18px;
    .message {
      width: 100%;
      height: 48px;
      padding: 0 16px;
      box-sizing: border-box;
      .images {
        float: left;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        background: chocolate;
      }
      .mes {
        float: left;
        padding-left: 12px;
        box-sizing: border-box;
        .name{
          font-size: 16px;
          font-family: PingFangSC-Medium, PingFang SC;
          font-weight: 500;
          color: #333333;
          line-height: 1;
          padding: 4px 0 8px 0;
          box-sizing: border-box;
        }
        .phone {
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
          line-height: 1;
          padding: 4px 2px 0 0;
          box-sizing: border-box;
        }
      }
    }
    .myFun {
      width: 100%;
      height: 100px;
      padding: 10px;
      padding-top: 36px;
      padding-bottom: 0px;
      box-sizing: border-box;
      .con {
        width: 60px;
        margin: 0 auto;
        text-align: center;
        .iconfont {
          font-size: 24px;
          color: #333;
        }
        p {
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #666666;
          line-height: 30px;
        }
      }
    }
// images
// mes
// name
// phone
  }
  .container {
    padding: 0 8px;
    padding-bottom: 60px;
    .collect {
      padding-left: 4px;
      font-size: 15px;
      font-family: PingFangSC-Medium, PingFang SC;
      font-weight: 500;
      color: #333333;
      line-height: 50px;
    }
    ul {
        display: flex;
        width:100%;
        flex-wrap: wrap;
      li {
        width: 50%;
        margin-bottom: 10px;
        padding: 0 4px;
        box-sizing: border-box;
        .divli {
          width: 100%;
          height: 100%;
          background: #fff;
          border-radius: 12px;
          padding: 8px;
          box-sizing: border-box;
          .avtar {
            width: 124px;
            height: 124px;
            display: block;
            margin: 0 auto;
            border-radius: 10px;
            overflow: hidden;
          }
          .avtarNum {
            width: 112px;
            height: 22px;
            margin-top: 10px;
          }
          .name {
            font-size: 16px;
            font-family: PingFangSC-Medium, PingFang SC;
            font-weight: 500;
            color: #333333;
            padding: 10px 0;
            line-height: 1;
          }
          .comp {
            font-size: 11px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #666666;
            line-height: 1;
          }
        }
      }
    }
  }
}
</style>
